//子组件B  js
const app = getApp();

Component({
  //B在这里接收与data类似可以直接在wxml上用
  properties: {
    couponsList: {
      type: Object,//类型
      value: {}
    },
  },
  data: {
    xhx_images: app.xhx_images,
  },
  methods: {
    _confirm(event) {
      var param = event.target.dataset.param;
      console.log(param)
      var data={};
      data.activityTypeId = param.activityTypeId;
      data.activityUuid = param.activityUuid;
      data.couponUuid = param.couponUuid;
      var receive = this.properties.couponsList.receive;
      // console.log(confirm)
      if (receive) {
        receive(data);
      }
    },
  }
})

// var couponsList={
//   list:[{amount:null,classType:null,validEndDate:null,receiveStatus:null,confirmText:null}],
//   receive:function(){

//   }
// }


